using System;
using System.Configuration;
using System.IO;
using System.Text;

namespace BookDownloader.Core.Implementation.BaseLibEngine.Parser
{
	public abstract class SqlFileCachedStreamProviderBase : ISqlStreamProvider
	{
		public StreamReader GetReader(LibFileTypes fileType)
		{
			string path = GetPath(fileType);
			StreamReader rd = new StreamReader(path, Encoding.GetEncoding("UTF-8"));
			return rd;
		}

		protected virtual string GetPath(LibFileTypes fileType)
		{
			return null;
		}
	}
}